package com.netease.nim.uikit.common.util

import android.content.Context
import com.netease.nim.uikit.xpopup.CreateXPopupHelper
import com.netease.nim.uikit.xpopup.PopupViewEntity
import www.wen.com.common.lib.data.entities.AreaCodeEntity
import www.wen.com.common.lib.extension.toast

/**
 * @author WEN
 * @Description:
 * @date 2021/8/20 11:57
 */
object DialogTest {

    fun showBottomAreaCodeListPopupView(context: Context){
        CreateXPopupHelper.createBottomAreaCodeListPopupView(PopupViewEntity().apply {
            this.context = context
            isShow = true
            areaCodeList = arrayListOf(
                AreaCodeEntity("China","中国","CN",86,true),
                AreaCodeEntity("Angola","安哥拉","AO",244)
            )
            areaCodeListResultCallBack = {
                toast(it.zh)
            }
        })
    }

}